/* static/user/css/modules/equipment-list.css */
/* 容器 */
.equipment-list {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 筛选区 */
.equipment-list__filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.equipment-list__search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.equipment-list__category-select {
    width: 200px;
    padding: 8px;
}

/* 列表容器 */
.equipment-list__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 卡片样式 */
.equipment-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.equipment-card:hover {
    transform: translateY(-5px);
}

.equipment-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.equipment-card__content {
    padding: 15px;
}

.equipment-card__title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.equipment-card__category {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* 加载状态 */
.equipment-list__loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* equipment-list.css 新增样式 */
/* 状态徽章 */
.maintenance-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 规格文字 */
.equipment-card__specs {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

/* 元信息布局 */
.equipment-card__meta {
    display: flex;
    gap: 15px;
    margin: 12px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2d3436;
}

.meta-item i {
    font-size: 16px;
    color: #3498db;
}

/* 库存状态 */
.equipment-card__stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.stock-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.stock-available {
    background: #2ecc71;
    color: white;
}

.stock-out {
    background: #e74c3c;
    color: white;
}

.total-stock {
    font-size: 12px;
    color: #666;
}


/* 在equipment-list.css中添加 */
.add-to-cart-btn {
    width: 100%;
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background: #2980b9;
}

.icon-add::before {
    content: "+";
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}